import request from '@/utils/axios-config'

// 商品收藏相关API
export function getCollectList() {
  return request({
    url: '/admin/goodsCollect/list',
    method: 'get'
  })
}

export function getCollectPage(params) {
  return request({
    url: '/admin/goodsCollect/page',
    method: 'get',
    params
  })
}

export function getCollectDetail(id) {
  return request({
    url: `/admin/goodsCollect/detail/${id}`,
    method: 'get'
  })
}

export function saveOrUpdateCollect(data) {
  return request({
    url: '/admin/goodsCollect/saveOrUpdate',
    method: 'post',
    data
  })
}

export function deleteCollect(id) {
  return request({
    url: `/admin/goodsCollect/deleteById/${id}`,
    method: 'delete'
  })
} 